package main.java.com.manger.service.Impl;

import com.manger.constant.Constant;
import com.manger.dao.StudentCourseMapper;
import com.manger.entity.StudentCourseKey;
import com.manger.service.StudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by LCJ on 2017/6/13.
 */
@Service
public class StudentCourseServiceImpl implements StudentCourseService {
    @Autowired
    private StudentCourseMapper studentCourseMapper;
    @Override
    public String add(StudentCourseKey studentCourseKey) {
        if(studentCourseMapper.insert(studentCourseKey)>0)
            return Constant.OPERATEION_SUCCESS;
        return Constant.OPERATEION_FAILURE ;
    }
}
